import Vue from 'vue'
import Router from 'vue-router'
import HelloWorld from '@/components/HelloWorld'
import Index from '@/views/index.vue'
import Home from '@/views/home.vue'
import Movie from '@/views/movie.vue'
import Full from '@/containers/full.vue'
import Full2 from '@/containers/full2.vue'
Vue.use(Router)

export default new Router({
  routes: [
    {
      path: '/',
      name:'/',
      redirect:'/index',
      component: Full,
      hidden:false,
      children:[{
        path: '/index',
      name: 'index',
      component:resolve =>  require(['@/views/index.vue'],resolve),
      }]
  },
  {
    path: '/movie/:mid',
    redirect:'/movie',
    component:Full2,
    children:[{
      path: '/movie/:mid',
    name: 'movie',
    component:resolve =>  require(['@/views/movie.vue'],resolve),
    }]
},
{
  path: '/tvplay/:mid',
  redirect:'/tvplay',
  component:Full,
  children:[{
    path: '/tvplay/:mid',
  name: 'tvplay',
  component:resolve =>  require(['@/views/tvplay.vue'],resolve),
  }]
}
,
{
  path: '/variety/:mid',
  redirect:'/variety',
  component:Full,
  children:[{
    path: '/variety/:mid',
  name: 'variety',
  component:resolve =>  require(['@/views/variety.vue'],resolve),
  }]
  
}
,
{
  path: '/details/:mid/:id',
  redirect:'/details',
  component:Full,
  children:[{
    path: '/details/:mid/:id',
  name: 'details',
  component:resolve =>  require(['@/views/details.vue'],resolve),
  }]
}
  
    
  ]
})
